﻿namespace DotRas
{
    using System;
    using System.Collections.ObjectModel;
    using System.Diagnostics;

    [Serializable, DebuggerDisplay("Address = {Address}")]
    public sealed class RasAutoDialAddress
    {
        private string _address;
        private Collection<RasAutoDialEntry> _entries;

        public RasAutoDialAddress(string address)
        {
            this._address = address;
        }

        public string Address
        {
            get
            {
                return this._address;
            }
        }

        public Collection<RasAutoDialEntry> Entries
        {
            get
            {
                if (this._entries == null)
                {
                    this._entries = new Collection<RasAutoDialEntry>();
                }
                return this._entries;
            }
        }
    }
}

